#ifndef _GT_CONST_H_
#define _GT_CONST_H_

#define GTTHREAD_THREADS_MAX    (20)
#define MAIN_THREAD             (0)
#define SCHED_THREAD            (1)
#define GT_SCHED_DEFAULT        (0)
#define GT_PRIO_DEFAULT         (1)
#define GT_STACKSIZE            (1024*16*sizeof(int))
#define GTTHREAD_MUTEX_DEFAULT  (0)
#define GTTHREAD_NOOWNER        (-10)

//#define GT_DEBUG

#ifdef GT_DEBUG

#include <stdio.h>
#define	GT_DEBUG_OUT(string)    fprintf(stderr, "[DEBUG]: " string "\n")
#define	GT_DEBUG_OUT1(string, arg)   fprintf(stderr, "[DEBUG]: " string "\n", arg)

#else

#define GT_DEBUG_OUT(string)
#define GT_DEBUG_OUT1(string, arg)

#endif

#define ALRMTYPE SIGPROF
#define TIMERTYPE ITIMER_PROF

#endif /* _GT_CONST_H_ */
